home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / gdb.new / gdb-3.98 / configure < prev    next >
Encoding:
Text File  |  1991-08-01  |  19.4 KB  |  693 lines

  1. #!/bin/sh
  2. # Please do not edit this file.  It is generated automatically from
  3. # configure.in and a configure template.
  4. configdirs=
  5.  
  6. #!/bin/sh
  7.  
  8. # Configuration script template
  9. #   Copyright (C) 1988, 1990, 1991 Free Software Foundation, Inc.
  10.  
  11. #This file is part of GNU.
  12.  
  13. # This program is free software; you can redistribute it and/or modify
  14. # it under the terms of the GNU General Public License as published by
  15. # the Free Software Foundation; either version 2 of the License, or
  16. # (at your option) any later version.
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  24.  
  25. # $Id: configure,v 1.22 1991/07/20 01:22:30 rich Exp $
  26.  
  27. #
  28. # Shell script to create proper links to machine-dependent files in
  29. # preparation for compilation.
  30. #
  31. # If configure succeeds, it leaves its status in config.status.
  32. # If configure fails after disturbing the status quo, 
  33. #     config.status is removed.
  34. #
  35.  
  36. remove=rm
  37. hard_link=ln
  38. symbolic_link='ln -s'
  39.  
  40. #for Test
  41. #remove="echo rm"
  42. #hard_link="echo ln"
  43. #symbolic_link="echo ln -s"
  44.  
  45. progname=$0
  46.  
  47. # clear some things potentially inherited from environment.
  48. ansi=
  49. defaulttargets=
  50. destdir=
  51. fatal=
  52. hostsubdir=
  53. Makefile=Makefile
  54. Makefile_in=Makefile.in
  55. norecurse=
  56. removing=
  57. srcdir=
  58. srctrigger=
  59. target=
  60. targets=
  61. targetsubdir=
  62. template=
  63. verbose=
  64.  
  65. for arg in $*;
  66. do
  67.     case ${arg} in
  68.     -ansi | +ansi)
  69.         ansi=true
  70.         ;;
  71.     -destdir=* | +destdir=* | +destdi=* | +destd=* | +dest=* | +des=* | +de=* | +d=*)
  72.         destdir=`echo ${arg} | sed 's/[+-]d[a-z]*=//'`
  73.         ;;
  74.     -forcesubdirs | +forcesubdirs | +forcesubdir | +forcesubdi | +forcesubd \
  75.     | +forcesub | +forcesu | +forces | +force | +forc | +for | +fo | +f)
  76.         forcesubdirs=${arg}
  77.         ;;
  78.     -languages=* | +languages=* | +language=* | +languag=* \
  79.         | +langua=* | +langu=* | +lang=* | +lan=* | +la=* \
  80.         | +l=*)
  81.         languages="${languages} `echo ${arg} | sed 's/[+-]l[a-z]*=//'`"
  82.         ;;
  83.     -gas | +gas | +ga | +g)
  84.         gas=yes
  85.         ;;
  86.     -help | +h | +help)
  87.         fatal=true
  88.         ;;
  89.     -nfp | +nfp | +nf | +n)
  90.         nfp=yes
  91.         ;;
  92.     -norecurse | +norecurse)
  93.         norecurse=true
  94.         ;;
  95.     -rm | +rm)
  96.         removing=${arg}
  97.         ;;
  98. #    -srcdir=* | +srcdir=* | +srcdi=* | +srcd=* | +src=* | +sr=* | +s=*)
  99. #        srcdir=`echo ${arg} | sed 's/[+-]s[a-z]*=//'`
  100. #        ;;
  101.     -target=* | +target=* | +targe=* | +targ=* | +tar=* | +ta=* | +t=*)
  102.         if [ -n "${targets}" ] ; then
  103.             forcesubdirs="+forcesubdirs"
  104.         fi
  105.  
  106.         newtargets="${targets} `echo ${arg} | sed 's/[+-]t[a-z]*=//'`"
  107.         targets="${newtargets}"
  108.         ;;
  109.     -template=* | +template=*)
  110.         template=`echo ${arg} | sed 's/[+-]template=//'`
  111.         ;;
  112.     +verbose | +verbos | +verbo | +verb | +ver | +ve | +v)
  113.         verbose=${arg}
  114.         ;;
  115.     -* | +*)
  116.         (echo ;
  117.         echo "Unrecognized option: \"${arg}\"". ;
  118.         echo) 1>&2
  119.         fatal=true
  120.         ;;
  121.     *)
  122.         if [ -n "${hosts}" ] ; then
  123.             forcesubdirs="+forcesubdirs"
  124.         fi
  125.  
  126.         newhosts="${hosts} ${arg}"
  127.         hosts=${newhosts}
  128.         ;;
  129.     esac
  130. done
  131.  
  132. if [ -n "${verbose}" ] ; then
  133.     echo `pwd`/configure $*
  134.     echo targets=\"${targets}\"
  135. fi
  136.  
  137. # process host and target only if not rebuilding configure itself or removing.
  138. if [ -z "${template}" -a -z "${removing}" -a -z "${fatal}" ] ; then
  139.     # Complain if an arg is missing
  140.     if [ -z "${hosts}" ] ; then
  141.         (echo ;
  142.         echo "configure: No HOST specified." ;
  143.         echo) 2>&1
  144.         fatal=true
  145.     fi
  146. fi
  147.  
  148. if [ -n "${fatal}" -o "${hosts}" = "help" ] ; then
  149.     (echo "Usage: configure HOST" ;
  150.     echo ;
  151.     echo "Options: [defaults in brackets]" ;
  152.     echo " +ansi        configure w/ANSI library. [no ansi lib]" ;
  153.     echo " +destdir=MYDIR    configure for installation into MYDIR. [/usr/local]" ;
  154.     echo " +forcesubdirs    configure in subdirectories.  [in source directories]" ;
  155.     echo " +lang=LANG    configure to build LANG. [gcc]" ;
  156.     echo " +help        print this message. [normal config]" ;
  157.     echo " +gas        configure the compilers for use with gas. [native as]" ;
  158.     echo " +nfp        configure the compilers default to soft floating point. [hard float]" ;
  159.     echo " +norecurse    configure this directory only. [recurse]" ;
  160.     echo " +rm        remove this configuration. [build a configuration]" ;
  161.     echo " +target=TARGET    configure for TARGET.  [TARGET = HOST]" ;
  162.     echo " +template=TEM    rebuild configure using TEM. [normal config]" ;
  163.     echo ;
  164.     echo "Where HOST and TARGET are something like \"vax\", \"sun3\", \"encore\", etc." ;
  165.     echo "Asking for more than one \"+target\" implies \"+forcesubdirs\".  Any other" ;
  166.     echo "options given will apply to all targets.") 1>&2
  167.  
  168.     if [ -r config.status ] ; then
  169.         cat config.status
  170.     fi
  171.  
  172.     exit 1
  173. fi
  174.  
  175. #### configure.in common parts come in here.
  176. # This file is a shell script fragment that supplies the information
  177. # necessary to tailor a template configure script into the configure
  178. # script appropriate for this directory.  For more information, check
  179. # any existing configure script.
  180.  
  181. configdirs="libiberty bfd binutils bison gcc readline gdb ld gas gnulib ${clib} emacs prms "
  182. srctrigger=README.configure
  183. srcname="gnu development package"
  184.  
  185. ## end of common part.
  186.  
  187. # are we rebuilding config itself?
  188. if [ -n "${template}" ] ; then
  189.     if [ ! -r ${template} ] ; then
  190.         echo "Can't find template ${template}."
  191.         exit 1
  192.     fi
  193.  
  194. # prep the template
  195.     sed -e '/^#### configure.in common parts come in here.$/,/^## end of common part.$/c\
  196. #### configure.in common parts come in here.\
  197. ## end of common part.' \
  198.     -e '/^#### configure.in per-host parts come in here.$/,/^## end of per-host part.$/c\
  199. #### configure.in per-host parts come in here.\
  200. ## end of per-host part.' \
  201.     -e '/^#### configure.in per-target parts come in here.$/,/^## end of per-target part.$/c\
  202. #### configure.in per-target parts come in here.\
  203. ## end of per-target part.' \
  204.     -e '/^#### configure.in post-target parts come in here.$/,/^## end of post-target part.$/c\
  205. #### configure.in post-target parts come in here.\
  206. ## end of post-target part.' \
  207.     < ${template} > template.new
  208.  
  209.     if [ -r configure.in ] ; then
  210.         if [ -z "`grep '^# per\-host:' configure.in`" ] ; then
  211.             echo `pwd`/configure.in has no "per-host:" line.
  212.             exit 1
  213.         fi
  214.  
  215.         if [ -z "`grep '^# per\-target:' configure.in`" ] ; then
  216.             echo `pwd`/configure.in has no "per-target:" line.
  217.             exit 1
  218.         fi
  219.  
  220.         # split configure.in into common, per-host, per-target,
  221.         # and post-target parts.  Post-target is optional.
  222.         sed -e '/^# per\-host:/,$d' configure.in > configure.com
  223.         sed -e '1,/^# per\-host:/d' -e '/^# per\-target:/,$d' configure.in > configure.hst
  224.         if grep -s '^# post-target:' configure.in ; then
  225.           sed -e '1,/^# per\-target:/d' -e '/^# post\-target:/,$d' configure.in > configure.tgt
  226.           sed -e '1,/^# post\-target:/d' configure.in > configure.pos
  227.         else
  228.           sed -e '1,/^# per\-target:/d' configure.in > configure.tgt
  229.           echo >configure.pos
  230.         fi
  231.  
  232.         # and insert them
  233.         sed -e '/^#### configure.in common parts come in here.$/  r configure.com' \
  234.             -e '/^#### configure.in per\-host parts come in here.$/  r configure.hst' \
  235.             -e '/^#### configure.in per\-target parts come in here.$/  r configure.tgt' \
  236.             -e '/^#### configure.in post\-target parts come in here.$/  r configure.pos' \
  237.             template.new > configure.new
  238.  
  239.         rm -f configure.com configure.tgt configure.hst configure.pos
  240.     else
  241.         echo Warning: no configure.in in `pwd`
  242.         cat ${template} >> configure
  243.     fi
  244.  
  245.     chmod a+x configure.new
  246.     rm template.new
  247. #    mv configure configure.old
  248.     mv configure.new configure
  249.     echo Rebuilt configure in `pwd`
  250.  
  251.     if [ -z "${norecurse}" ] ; then
  252.         # If template is relative path, make it absolute for recursing.
  253.         if echo "${template}" | grep -s '^/' ; then
  254.            true
  255.         else
  256.            template=`pwd`/${template}
  257.         fi
  258.  
  259.         while [ -n "${configdirs}" ] ; do
  260.             # set configdir to car of configdirs, configdirs to cdr of configdirs
  261.             set ${configdirs}; configdir=$1; shift; configdirs=$*
  262.  
  263.             if [ "`echo ${configdir}.*`" != "${configdir}.*" ] ; then
  264.                 targetspecificdirs=${configdir}.*
  265.             else
  266.                 targetspecificdirs=
  267.             fi
  268.  
  269.             for i in ${configdir} ${targetspecificdirs} ; do
  270.                 if [ -d $i ] ; then
  271.                     if [ -r $i/configure ] ; then
  272.                         (cd $i ;
  273.                             ./configure +template=${template} ${verbose})
  274.                     else
  275.                         echo No configure script in `pwd`/$i
  276.                     fi
  277.                 else
  278.                     echo Warning: directory $i is missing.
  279.                 fi
  280.             done
  281.         done
  282.     fi
  283.  
  284.     exit 0
  285. fi
  286.  
  287. # some sanity checks on configure.in
  288. if [ -z "${srctrigger}" ] ; then
  289.     echo srctrigger not set in configure.in. `pwd` not configured.
  290.     exit 1
  291. fi
  292.  
  293. for host in ${hosts} ; do
  294.     # Default other arg
  295.     if [ -z "${targets}" -o -n "${defaulttargets}" ] ; then
  296.         targets=${host}
  297.         defaulttargets=true
  298.     fi
  299.  
  300.     host_makefile_frag=config/hmake-${host}
  301.  
  302. #### configure.in per-host parts come in here.
  303.  
  304. ## end of per-host part.
  305.  
  306.  
  307.     for target in ${targets} ; do
  308.  
  309.         if [ -n "${verbose}" ] ; then
  310.             echo "    target=\"${target}\""
  311.         fi
  312.  
  313.         target_makefile_frag=config/tmake-${target}
  314.  
  315. #### configure.in per-target parts come in here.
  316. ## end of per-target part.
  317.  
  318.         # Temporarily, we support only direct subdir builds.
  319.         hostsubdir=Host-${host}
  320.         targetsubdir=Target-${target}
  321.  
  322.         if [ -n "${removing}" ] ; then
  323.             if [ -n "${forcesubdirs}" ] ; then
  324.                 if [ -d "${hostsubdir}" ] ; then
  325.                     rm -rf ${hostsubdir}/${targetsubdir}
  326.  
  327.                     if [ -z "`(ls ${hostsubdir}) 2>&1 | grep Target-`" ] ; then
  328.                         rm -rf ${hostsubdir}
  329.                     fi
  330.                 else
  331.                     echo Warning: no `pwd`/${hostsubdir} to remove.
  332.                 fi
  333.             else
  334.                 rm -f ${Makefile} config.status ${links}
  335.             fi
  336.         else
  337.             if [ -n "${forcesubdirs}" ] ; then
  338.                 # check for existing status before allowing forced subdirs.
  339.                 if [ -f ${Makefile} ] ; then
  340.                     echo "${Makefile} already exists in source directory.  `pwd` not configured."
  341.                     exit 1
  342.                 fi
  343.  
  344.                 if [ ! -d ${hostsubdir} ] ; then mkdir ${hostsubdir} ; fi
  345.                 cd ${hostsubdir}
  346.  
  347.                 if [ ! -d ${targetsubdir} ] ; then mkdir ${targetsubdir} ; fi
  348.                 cd ${targetsubdir}
  349.  
  350.                 srcdir=../..
  351.             else
  352.                 # if not subdir builds, then make sure none exist.
  353.                 if [ -n "`(ls .) 2>&1 | grep Host-`" ] ; then
  354.                     echo "Configured subdirs exist.  `pwd` not configured."
  355.                     exit 1
  356.                 fi
  357.             fi
  358.  
  359.             # Find the source files, if location was not specified.
  360.             if [ -z "${srcdir}" ] ; then
  361.                 srcdirdefaulted=1
  362.                 srcdir=.
  363.                 if [ -n "${srctrigger}" -a ! -r ${srctrigger} ] ; then
  364.                     srcdir=..
  365.                 fi
  366.             fi
  367.  
  368.             if [ -n "${srctrigger}" -a ! -r ${srcdir}/${srctrigger} ] ; then
  369.                 if [ -z "${srcdirdefaulted}" ] ; then
  370.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/${srcdir}" 1>&2
  371.                 else
  372.                     echo "${progname}: Can't find ${srcname} sources in `pwd`/. or `pwd`/.." 1>&2
  373.                 fi
  374.  
  375.                 echo \(At least ${srctrigger} is missing.\) 1>&2
  376.                 exit 1
  377.             fi
  378.  
  379.             # Set up the list of links to be made.
  380.             # ${links} is the list of link names, and ${files} is the list of names to link to.
  381.  
  382.             # Make the links.
  383.             while [ -n "${files}" ] ; do
  384.                 # set file to car of files, files to cdr of files
  385.                 set ${files}; file=$1; shift; files=$*
  386.                 set ${links}; link=$1; shift; links=$*
  387.  
  388.                 if [ ! -r ${srcdir}/${file} ] ; then
  389.                     echo "${progname}: cannot create a link \"${link}\"," 1>&2
  390.                     echo "since the file \"${file}\" does not exist." 1>&2
  391.                     exit 1
  392.                 fi
  393.  
  394.                 ${remove} -f ${link}
  395.                 rm -f config.status
  396.                 # Make a symlink if possible, otherwise try a hard link
  397.                 ${symbolic_link} ${srcdir}/${file} ${link} 2>/dev/null || ${hard_link} ${srcdir}/${file} ${link}
  398.  
  399.                 if [ ! -r ${link} ] ; then
  400.                     echo "${progname}: unable to link \"${link}\" to \"${srcdir}/${file}\"." 1>&2
  401.                     exit 1
  402.                 fi
  403.                 echo "Linked \"${link}\" to \"${srcdir}/${file}\"."
  404.             done
  405.  
  406.             # Create a .gdbinit file which runs the one in srcdir
  407.             # and tells GDB to look there for source files.
  408.  
  409.             case ${srcdir} in
  410.             .)
  411.                 ;;
  412.             *)
  413.                 echo "dir ." > .gdbinit
  414.                 echo "dir ${srcdir}" >> .gdbinit
  415.                 echo "source ${srcdir}/.gdbinit" >> .gdbinit
  416.                 ;;
  417.             esac
  418.  
  419.             # Install a makefile, and make it set VPATH
  420.             # if necessary so that the sources are found.
  421.             # Also change its value of srcdir.
  422.  
  423.         # FIXME-someday: This business of always writing to .tem and mv back
  424.         # is so that I don't screw things up while developing.  Once this
  425.         # template is stable, these should be optimized. xoxorich.
  426.  
  427.             # Define macro CROSS_COMPILE in compilation if this is a cross-compiler.
  428.             if [ "${host}" != "${target}" ] ; then
  429.                 echo "CROSS=-DCROSS_COMPILE" > ${Makefile}
  430.                 echo "ALL=start.encap" >> ${Makefile}
  431.             else
  432.                 echo "ALL=all.internal" > ${Makefile}
  433.             fi
  434.  
  435.             # set target, host, VPATH
  436.             echo "host = ${host}" >> ${Makefile}
  437.             echo "target = ${target}" >> ${Makefile}
  438.  
  439.             if [ -n "${forcesubdirs}" ] ; then
  440.                 echo "subdir = /${hostsubdir}/${targetsubdir}" >> ${Makefile}
  441.             else
  442.                 echo "subdir =" >> ${Makefile}
  443.             fi
  444.  
  445.         #    echo "workdir = `pwd`" >> ${Makefile}
  446.             echo "VPATH = ${srcdir}" >> ${Makefile}
  447.  
  448.             # add "Makefile.in" (or whatever it's called)
  449.             cat ${srcdir}/${Makefile_in} >> ${Makefile}
  450.  
  451.             # Conditionalize the makefile for this host.
  452.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  453.                 sed -e "/^####/  r ${srcdir}/${host_makefile_frag}" ${Makefile} > Makefile.tem
  454.                 mv Makefile.tem ${Makefile}
  455.             fi
  456.  
  457.             # Conditionalize the makefile for this target.
  458.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  459.                 sed -e "/^####/  r ${srcdir}/${target_makefile_frag}" ${Makefile} > Makefile.tem
  460.                 mv Makefile.tem ${Makefile}
  461.             fi
  462.  
  463.             # set srcdir
  464.             sed "s@^srcdir = \.@srcdir = ${srcdir}@" ${Makefile} > Makefile.tem
  465.             mv Makefile.tem ${Makefile}
  466.  
  467.             # set destdir
  468.             if [ -n "${destdir}" ] ; then
  469.                 sed "s:^destdir =.*$:destdir = ${destdir}:" ${Makefile} > Makefile.tem
  470.                 mv Makefile.tem ${Makefile}
  471.             fi
  472.  
  473.             # reset SUBDIRS
  474.             sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem
  475.             mv Makefile.tem ${Makefile}
  476.  
  477.             # reset NONSUBDIRS
  478.             sed "s:^NONSUBDIRS =.*$:NONSUBDIRS = ${noconfigdirs}:" ${Makefile} > Makefile.tem
  479.             mv Makefile.tem ${Makefile}
  480.  
  481.             using=
  482.             if [ -f ${srcdir}/${host_makefile_frag} ] ; then
  483.                 using=" using \"${host_makefile_frag}\""
  484.             fi
  485.  
  486.             if [ -f ${srcdir}/${target_makefile_frag} ] ; then
  487.                 if [ -z "${using}" ] ; then
  488.                     andusing=" using \"${target_makefile_frag}\""
  489.                 else
  490.                     andusing="${using} and \"${target_makefile_frag}\""
  491.                 fi
  492.             else
  493.                 andusing=${using}
  494.             fi
  495.  
  496.             echo "Created \"${Makefile}\"" in `pwd`${andusing}.
  497.  
  498. #### configure.in post-target parts come in here.
  499.  
  500. ## end of post-target part.
  501.  
  502.             if [ "${host}" = "${target}" ] ; then
  503.                 echo "Links are now set up for use with a ${target}." \
  504.                     > config.status
  505.         #            | tee ${srcdir}/config.status
  506.             else
  507.                 echo "Links are now set up for host ${host} and target ${target}." \
  508.                     > config.status
  509.         #            | tee ${srcdir}/config.status
  510.             fi
  511.  
  512.             originaldir=`pwd`
  513.             cd ${srcdir}
  514.         fi
  515.     done # for each target
  516.  
  517. #    # Now build a Makefile for this host.
  518. #    if [ -n "${forcesubdirs}" ] ; then
  519. #        cd ${hostsubdir}
  520. #        cat > GNUmakefile << E!O!F
  521. ## Makefile generated by configure for host ${host}.
  522. #
  523. #%:
  524. #    for i in ${targets} ; do \
  525. #        $(MAKE) -C Target-\$i \$@
  526. #
  527. #all clean stage1 stage2 stage3 stage4etags tags TAGS
  528. #E!O!F
  529. #    fi
  530. done # for each host
  531.  
  532. # If there are subdirectories, then recurse. 
  533.  
  534. if [ -n "${norecurse}" -o -z "${configdirs}" ] ; then exit 0 ; fi
  535.  
  536. # configdirs is not null
  537. for configdir in ${configdirs} ; do
  538.     echo Configuring ${configdir}...
  539.     specifics=
  540.     commons=
  541.  
  542.     if [ -n "${defaulttargets}" ] ; then
  543.         for host in ${hosts} ; do
  544.             if [ -d ${configdir}.${host} ] ; then
  545.                 newspecifics="${specifics} ${host}"
  546.                 specifics=${newspecifics}
  547.             else
  548.                 newcommons="${commons} ${host}"
  549.                 commons=${newcommons}
  550.             fi # if target specific
  551.         done # for each host
  552.  
  553.         if [ -n "${commons}" ] ; then
  554.             if [ -d ${configdir} ] ; then
  555.                 (cd ${configdir} ;
  556.                     ./configure ${commons} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  557.                     | sed 's/^/    /'
  558.             else
  559.                 echo Warning: directory \"${configdir}\" is missing.
  560.             fi
  561.         fi # if any common hosts
  562.  
  563.         if [ -n "${specifics}" ] ; then
  564.             for host in ${specifics} ; do
  565.                 echo Configuring target specific directory ${configdir}.${host}...
  566.                 (cd ${configdir}.${host} ;
  567.                     ./configure ${host} ${verbose} ${forcesubdirs} ${removing} +destdir=${destdir}) \
  568.                     | sed 's/^/    /'
  569.             done # for host in specifics
  570.         fi # if there are any specifics
  571.     else
  572.  
  573.         for target in ${targets} ; do
  574.             if [ -d ${configdir}.${target} ] ; then
  575.                 newspecifics="${specifics} ${target}"
  576.                 specifics=${newspecifics}
  577.             else
  578.                 newcommons="${commons} +target=${target}"
  579.                 commons=${newcommons}
  580.             fi
  581.  
  582.         done # check for target specific dir override
  583.  
  584.         if [ -n "${verbose}" ] ; then
  585.             echo "    "commons=\"${commons}\"
  586.             echo "    "specifics=\"${specifics}\"
  587.         fi # if verbose
  588.  
  589.         if [ -n "${commons}" ] ; then
  590.             if [ -d ${configdir} ] ; then
  591.                 (cd ${configdir} ;
  592.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  593.                         ${commons} +destdir=${destdir}) \
  594.                     | sed 's/^/    /'
  595.             else
  596.                 echo Warning: directory \"${configdir}\" is missing.
  597.             fi
  598.         fi # if any commons
  599.  
  600.         if [ -n "${specifics}" ] ; then
  601.             for target in ${specifics} ; do
  602.                 echo Configuring target specific directory ${configdir}.${target}...
  603.                 (cd ${configdir}.${target} ;
  604.                     ./configure ${hosts} ${verbose} ${forcesubdirs} ${removing} \
  605.                         "+target=${target}" +destdir=${destdir}) \
  606.                     | sed 's/^/    /'
  607.             done
  608.         fi # if any specifics
  609.     fi # not default targets
  610. done
  611.  
  612. exit 0
  613.  
  614. #
  615. # $Log: configure,v $
  616. # Revision 1.22  1991/07/20  01:22:30  rich
  617. # propogate gdb changes and destdir fix
  618. #
  619. # Revision 1.21  1991/07/20  00:55:20  gnu
  620. # Roll in new configure that handles GDB.  Make sure that the "configure"
  621. # that is checked-in reflects the latest "configure.in", which includes gdb.
  622. #
  623. # Revision 1.9  1991/07/06  04:35:51  gnu
  624. # Fix bug in configure when iterating targets.
  625. # Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found
  626. # in either spot.
  627. #
  628. # Revision 1.8  1991/07/05  00:04:58  gnu
  629. # Thu Jul  4 14:47:06 1991  John Gilmore  (gnu at cygint.cygnus.com)
  630. #
  631. #         * configure.in, Makefile.in:  Avoid rebuilding "depend" as much.
  632. #         Avoid declaring Makefile dependencies, because GNU Make stupidly
  633. #         tries to update it if we do.
  634. #
  635. #         * coffread.c:  Revise for minor changes to bfd internal coff
  636. #         indexes.
  637. #
  638. #         * configure:  If -template= is given a relative path, make it
  639. #         absolute before recurring in subdirectories.
  640. #
  641. # Revision 1.7  1991/07/04  15:59:46  gnu
  642. # Make gdb work with configure.  Only thing that doesn't work is the -list
  643. # option (as far as I know).
  644. #
  645. # Revision 1.6  1991/06/04  07:28:16  gnu
  646. # Change GDB over to GNU General Public License version 2.
  647. #
  648. # Revision 1.5  1991/05/19  07:26:54  rich
  649. # configure changes and -opcode.h movement.
  650. #
  651. # Revision 1.4  1991/05/19  00:16:45  rich
  652. # Configure for gdb.
  653. #
  654. # Revision 1.10  1991/05/04  00:58:38  rich
  655. # Fix program name bug.
  656. #
  657. # Revision 1.9  1991/05/03  19:14:18  rich
  658. # Changed getopt to libiberty, commented out an aborted attempt at host
  659. # level Makefiles because it caused errors on +rm, add a warning for
  660. # directories expected to be removed on +rm but that don't exist.
  661. #
  662. # Revision 1.8  1991/04/24  16:50:59  rich
  663. # Three staging checkpoint.
  664. #
  665. # Revision 1.7  1991/04/17  01:34:47  rich
  666. # Added getopt for binutils, fixed problem with host dependancies in
  667. # configure.template.
  668. #
  669. # Revision 1.6  1991/04/16  00:18:44  rich
  670. # Now handles multiple hosts and targets.
  671. #
  672. # Revision 1.5  1991/04/15  23:43:44  rich
  673. # Now handles multiple hosts and targets.
  674. #
  675. # Revision 1.4  1991/04/13  02:11:03  rich
  676. # Config cut 3.  We now almost install a29k.
  677. #
  678. # Revision 1.3  1991/04/11  02:41:54  rich
  679. # Cut 2 config.  Subdirs.
  680. #
  681. #
  682. #
  683.  
  684. #
  685. # Local Variables:
  686. # fill-column: 131
  687. # End:
  688. #
  689.  
  690. # end of configure.template
  691.